package org.bapoint.reactadmin.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName PagnationParam
 * @Description TODO
 * @Author wyp
 * @Date 2024/4/18 13:45
 * @Version 1.0
 */
@Data
public class PagnationParam {
    private Integer current;
    private Integer pageSize;
    private Integer total;

    private Integer offset;

    public PagnationParam(Integer current, Integer pageSize, Integer total, Integer offset) {
        this.current = current;
        this.pageSize = pageSize;
        this.total = total;
        this.offset = current*pageSize-pageSize;
    }

    public PagnationParam() {
    }

}
